﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Adams.Public.Web.Business.Web.Classifieds
{
    public class Posting
    {
        public static Adams.Public.DataTransfer.Web.Classifieds.Posting.PageLoad PageLoad(int id)
        {
            var input = new Adams.Public.DataTransfer.Classifieds.PostingInput()
            {
                PostingID = id
            };

            var model = new Adams.Public.DataTransfer.Web.Classifieds.Posting.PageLoad();
            model.Posting = Api.GetData<Adams.Shared.Entities.Classifieds.Posting>("Classifieds/Posting", input);
            return model;
        }
    }
}
